package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 同步用户对象 dz_usersync
 * 
 * @author ruoyi
 * @date 2022-10-31
 */
public class DzUsersync extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 同步用户id */
    private Long yhId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String userCode;

    /** 学工号 */
    @Excel(name = "学工号")
    private String userNo;

    /** 登录账号 */
    @Excel(name = "登录账号")
    private String loginName;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String regEmail;

    /** 手机 */
    @Excel(name = "手机")
    private String regCellPhone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCardNo;

    /** 性别：1男；2女 */
    @Excel(name = "性别：1男；2女")
    private String sex;

    /** 人员类型：1教职工；2学生；3其他人员 */
    @Excel(name = "人员类型：1教职工；2学生；3其他人员")
    private String type;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String nativePlace;

    /** 生日 */
    @Excel(name = "生日")
    private String birthday;

    /** 联系地址 */
    @Excel(name = "联系地址")
    private String officeAddress;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String photoUrl;

    /** 归档状态：1离职；2解聘；3退休；4毕业；5开出；6休学；7退学；8其他 */
    @Excel(name = "归档状态：1离职；2解聘；3退休；4毕业；5开出；6休学；7退学；8其他")
    private String leaveStatus;

    /** 会员id */
    @Excel(name = "会员id")
    private Long huiyuanId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    private Long isFrom;

    public Long getIsFrom() {
        return isFrom;
    }

    public void setIsFrom(Long isFrom) {
        this.isFrom = isFrom;
    }

    private List<DzDeptsync> userDepts;

    public List<DzDeptsync> getUserDepts() {
        return userDepts;
    }

    public void setUserDepts(List<DzDeptsync> userDepts) {
        this.userDepts = userDepts;
    }

    public void setYhId(Long yhId)
    {
        this.yhId = yhId;
    }

    public Long getYhId() 
    {
        return yhId;
    }
    public void setUserCode(String userCode) 
    {
        this.userCode = userCode;
    }

    public String getUserCode() 
    {
        return userCode;
    }
    public void setUserNo(String userNo) 
    {
        this.userNo = userNo;
    }

    public String getUserNo() 
    {
        return userNo;
    }
    public void setLoginName(String loginName) 
    {
        this.loginName = loginName;
    }

    public String getLoginName() 
    {
        return loginName;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setRegEmail(String regEmail) 
    {
        this.regEmail = regEmail;
    }

    public String getRegEmail() 
    {
        return regEmail;
    }
    public void setRegCellPhone(String regCellPhone) 
    {
        this.regCellPhone = regCellPhone;
    }

    public String getRegCellPhone() 
    {
        return regCellPhone;
    }
    public void setIdCardNo(String idCardNo) 
    {
        this.idCardNo = idCardNo;
    }

    public String getIdCardNo() 
    {
        return idCardNo;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setNativePlace(String nativePlace) 
    {
        this.nativePlace = nativePlace;
    }

    public String getNativePlace() 
    {
        return nativePlace;
    }
    public void setBirthday(String birthday) 
    {
        this.birthday = birthday;
    }

    public String getBirthday() 
    {
        return birthday;
    }
    public void setOfficeAddress(String officeAddress) 
    {
        this.officeAddress = officeAddress;
    }

    public String getOfficeAddress() 
    {
        return officeAddress;
    }
    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }
    public void setLeaveStatus(String leaveStatus) 
    {
        this.leaveStatus = leaveStatus;
    }

    public String getLeaveStatus() 
    {
        return leaveStatus;
    }
    public void setHuiyuanId(Long huiyuanId) 
    {
        this.huiyuanId = huiyuanId;
    }

    public Long getHuiyuanId() 
    {
        return huiyuanId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("yhId", getYhId())
            .append("userCode", getUserCode())
            .append("userNo", getUserNo())
            .append("loginName", getLoginName())
            .append("userName", getUserName())
            .append("regEmail", getRegEmail())
            .append("regCellPhone", getRegCellPhone())
            .append("idCardNo", getIdCardNo())
            .append("sex", getSex())
            .append("type", getType())
            .append("nativePlace", getNativePlace())
            .append("birthday", getBirthday())
            .append("officeAddress", getOfficeAddress())
            .append("photoUrl", getPhotoUrl())
            .append("leaveStatus", getLeaveStatus())
            .append("huiyuanId", getHuiyuanId())
            .append("userId", getUserId())
            .toString();
    }
}
